package com.youzan.open.sdk.gen.v1_0_0.model;

import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.Maps;
import com.google.common.collect.Multimap;
import com.youzan.open.sdk.model.APIParams;
import com.youzan.open.sdk.model.ByteWrapper;
import com.youzan.open.sdk.model.FileParams;
import java.util.List;
import java.util.Map;
import java.util.Date;

public class YouzanClientAppenginePushinfoUpdateParams implements APIParams, FileParams  {

    /**
     * 是否开启推送1.开启0.不开启
     */
    private Long pushValid;
    /**
     * 推送地址
     */
    private String pushUrl;
    /**
     * 开发者id
     */
    private Long developerId;
    /**
     * 应用id
     */
    private Long appId;

    public void setPushValid(Long pushValid) {
        this.pushValid = pushValid;
    }

    public Long getPushValid() {
        return this.pushValid;
    }

    public void setPushUrl(String pushUrl) {
        this.pushUrl = pushUrl;
    }

    public String getPushUrl() {
        return this.pushUrl;
    }

    public void setDeveloperId(Long developerId) {
        this.developerId = developerId;
    }

    public Long getDeveloperId() {
        return this.developerId;
    }

    public void setAppId(Long appId) {
        this.appId = appId;
    }

    public Long getAppId() {
        return this.appId;
    }


    public Map<String, Object> toParams() {
        Map<String, Object> params = Maps.newHashMap();
        if (pushValid != null) {
            params.put("push_valid", pushValid);
        }
        if (pushUrl != null) {
            params.put("push_url", pushUrl);
        }
        if (developerId != null) {
            params.put("developer_id", developerId);
        }
        if (appId != null) {
            params.put("app_id", appId);
        }
        return params;
    }

    public Multimap<String, ByteWrapper> toFileParams() {
        Multimap<String, ByteWrapper> params = ArrayListMultimap.create();

            return params;
    }


}